#ifndef STORAGE_H
#define STORAGE_H

#include<iostream>
#include<fstream>
#include<string>
#include"string.h"
#include<vector>
#include"Task.h"
using namespace std;


class Storage{
private:
	
	static const int MAX_ARRAY=1000;

	static const string KEYWORD_DATE;
	static const string KEYWORD_STARTS;
	static const string KEYWORD_ENDS;
	static const string KEYWORD_DETAIL;
	static const string KEYWORD_IMPT;
	static const string KEYWORD_DONE;
	
public:
	void storeResult(vector<Task*> tasklist);
	void undo();
	void clearLog();
	vector<Task*> loadVect();

	vector<Task*> loadVectAlternate();
	string getTaskInfo(string& task, string infoStart, string infoEnd);

	static bool isEmptyTextFile(string fileName);
};




#endif